package com.mingserve.raw.domain.dto;

import com.alibaba.fastjson2.annotation.JSONField;
import lombok.Data;

/**
 * 传感器分包数据格式
 *
 * @author lvwshuai
 */
@Data
public class RawSubDataDto
{
    /**
     * x点值
     */
    private String accX;
    /**
     * y点值
     */
    private String accY;
    /**
     * z点值
     */
    private String accZ;
    /**
     * x点值
     */
    private String velX;
    /**
     * y点值
     */
    private String velY;
    /**
     * z点值
     */
    private String velZ;
    /**
     * 传感器编码
     */
    @JSONField(name = "ChipID")
    private String chipID;

    /**
     * 采集时间戳 必传
     */
    @JSONField(name = "Timestamp")
    private Long timestamp;
    /**
     * 采样频率(Hz) 必传
     */
    @JSONField(name = "VibSampleFreq")
    private Integer vibSampleFrequency;
    /**
     * 物体温度(°C)
     */
    @JSONField(name = "ObjectTemp")
    private Double objectTemperature;
    /**
     * 倍数 accX/gain 获得加速度的浮点值
     * =0  acc vel 点值为float类型
     */
    @JSONField(name = "Gain")
    private Integer gain;

    /**
     * 当前数据包的分包号
     */
    @JSONField(name = "SubPackageNum")
    private Integer subPackageNum;

    /**
     * 当前轴数据分包总包数
     */
    @JSONField(name = "TotalSubPackage")
    private Integer totalSubPackage;

    @JSONField(name = "FftAccX")
    private Double[] accFeatureX;
    @JSONField(name = "FftAccY")
    private Double[] accFeatureY;
    @JSONField(name = "FftAccZ")
    private Double[] accFeatureZ;

    @JSONField(name = "FftVelX")
    private Double[] velFeatureX;
    @JSONField(name = "FftVelY")
    private Double[] velFeatureY;
    @JSONField(name = "FftVelZ")
    private Double[] velFeatureZ;
}
